﻿using System.Data.Entity;

namespace MvcApplication5.Models
{
    public class MvcApplication5Context : DbContext
    {
        // You can add custom code to this file. Changes will not be overwritten.
        // 
        // If you want Entity Framework to drop and regenerate your database
        // automatically whenever you change your model schema, add the following
        // code to the Application_Start method in your Global.asax file.
        // Note: this will destroy and re-create your database with every model change.
        // 
        // System.Data.Entity.Database.SetInitializer(new System.Data.Entity.DropCreateDatabaseIfModelChanges<MvcApplication5.Models.MvcApplication5Context>());

        public MvcApplication5Context() : base("name=MvcApplication5Context")
        {
        }
        
        public DbSet<News> News { get; set; }
        public DbSet<RelatedDetails> RelatedDetail { get; set; }
        public DbSet<Category> Category { get; set; }
        public DbSet<TagDetails> TagDetail { get; set; }
        public DbSet<Tag> Tag { get; set; }
        public DbSet<Comment> Comment { get; set; }
        public DbSet<Author> Author { get; set; }
        public DbSet<Account> Account { get; set; }
        public DbSet<Statistics> Statistics { get; set; }
        public DbSet<Advertisement> Advertisement { get; set; }
    }
}
